home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 February / CMCD0205.ISO / Software / Freeware / Programare / bluej / bluejsetup-203.exe / {app} / lib / english / exception.help < prev    next >
Text File  |  2004-12-19  |  5KB  |  164 lines

  1. NullPointerException*
  2. You tried to access an object (either a field
  3. in an object or a method of an object). This
  4. did not work because the object reference you
  5. used to access the object was 'null'. For
  6. example: You wrote "thing.print()", and "thing"
  7. was null at the time.
  8.  
  9. ArithmeticException*
  10. Something went wrong during an arithmetic
  11. calculation, such as a division by 0 or
  12. something similar.
  13.  
  14. StringIndexOutOfBoundsException*
  15. You have tried to access a character or a substring
  16. in a string , and the index you used does not exist
  17. in that string. For example, you may have tried to
  18. access the fifth character in a string that is only
  19. three characters long.
  20. For the substring operation, remember that the second
  21. parameter is the end index of the substring, not the
  22. length.
  23.  
  24. ClassCastException*
  25. You used a "cast" - that is an instruction assigning
  26. a different static type to an object, such as in this
  27. example:
  28.        (String)someObject
  29. Here, "someObject" is cast to "String". This is legal
  30. only if the object stored in someObject really is of
  31. type String.
  32. In other words: you can cast to type T only if the
  33. object you are casting is of type T or one of its
  34. subtypes. In your case it wasn't.
  35.  
  36. IndexOutOfBoundsException*
  37. An index of some sort (such as to an array, to a string,
  38. or to a vector) is out of range. "Out of range" means
  39. that the index does not exist in the array or other
  40. collection (e.g. you tried to access element 5, but only
  41. three elements exist).
  42.  
  43. ArrayIndexOutOfBoundsException*
  44. An array index is out of range. "Out of range" means
  45. that the index does not exist in the array (e.g. you
  46. tried to access element 5, but only three elements
  47. exist). The legal index range is 0..arraylength-1.
  48.  
  49. ConcurrentModificationException*
  50. You are doing an iteration over a collection here.
  51. While you are doing this, the collection was modified.
  52. That's a problem. You are not allowed to modify the
  53. collection during an iteration. Or the other way
  54. around: you cannot continue the iteration after
  55. modifying the collection. The only modification
  56. allowed during an iteration is removing elements with
  57. the Iterator's remove method (NOT the remove in the
  58. collection itself).
  59.  
  60. AssertionError*
  61. An assertion has failed. This means that the expression
  62. inside the assert statement
  63.     assert(assertion-expression)
  64. evaluated to false. The assertion was put there most
  65. likely to ensure that the assertion is true at this
  66. point, and it being false indicates some sort of error.
  67. The exact nature of this error depends on the program.
  68. You should investigate why this expression was false.
  69.  
  70. ClassNotFoundException*
  71. A class that was needed to execute this application
  72. could not be found. It seems that it was found at the
  73. time the application was compiled, but now it's gone.
  74. Possible causes could be that your Java system is not
  75. configured properly (if the class in question is a 
  76. system class) or that your project is damaged (some
  77. class files somehow got lost or corrupted).
  78. Try rebuilding your whole project. If the problem 
  79. persists, chack with other projects. If this happens
  80. with more than one project, you may need to reinstall
  81. JDK.
  82.  
  83. StackOverflowError*
  84. The error indicates that you ran out of Stack memory.
  85. This typically happens when your program has a specific
  86. kind or programming error, called "infinite recursion".
  87. Recursion means that a method calls itself. Infinite
  88. recursion means that you do this indefinitely, and 
  89. eventually you run out of memory.
  90. Look at your code and examine whether one of the methods
  91. contains a call to itself. This it not a problem in 
  92. general, only if it calls itself again and again and 
  93. again and so on.
  94. The same problem also occurs if you have a constructor
  95. that creates another object of the same class. Then your
  96. constructor will call itself, which will call itself,
  97. which will then call itself.... you get the idea.
  98.  
  99. ArrayStoreException*
  100. No help available - sorry.
  101.  
  102. CannotRedoException*
  103. No help available - sorry.
  104.  
  105. CannotUndoException*
  106. No help available - sorry.
  107.  
  108. CMMException*
  109. No help available - sorry.
  110.  
  111. EmptyStackException*
  112. No help available - sorry.
  113.  
  114. IllegalArgumentException*
  115. No help available - sorry.
  116.  
  117. IllegalMonitorStateException*
  118. No help available - sorry.
  119.  
  120. IllegalPathStateException*
  121. No help available - sorry.
  122.  
  123. IllegalStateException*
  124. No help available - sorry.
  125.  
  126. ImagingOpException*
  127. No help available - sorry.
  128.  
  129. MissingResourceException*
  130. No help available - sorry.
  131.  
  132. NegativeArraySizeException*
  133. No help available - sorry.
  134.  
  135. NoSuchElementException*
  136. No help available - sorry.
  137.  
  138. ProfileDataException*
  139. No help available - sorry.
  140.  
  141. ProviderException*
  142. No help available - sorry.
  143.  
  144. RasterFormatException*
  145. No help available - sorry.
  146.  
  147. SecurityException*
  148. No help available - sorry.
  149.  
  150. SystemException*
  151. No help available - sorry.
  152.  
  153. UndeclaredThrowableException*
  154. No help available - sorry.
  155.  
  156. UnsupportedOperationException*
  157. No help available - sorry.
  158.  
  159. Exception
  160. This is a general exception that only says
  161. that something went wrong. I have no idea
  162. what it is...
  163.  
  164.